package com.example.mybluetooth;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

public class BluetoothListActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_bluetoothlist);
        TextView textView =findViewById(R.id.textView);
        Intent intent = getIntent();
        String var_ame = intent.getStringExtra("var_ame");
        textView.setText("这是通过intent传递的变量值："+var_ame);
    }

}
